package com.simtop.service;

import com.simtop.pojo.u3dpo.Ud;
import com.simtop.pojo.u3dpo.Uds;
import com.simtop.pojo.experimentpo.Experiment;
import com.simtop.pojo.experimentpo.ExperimentDynamicVo;
import com.simtop.pojo.experimentpo.ExperimentReportVo;

import java.util.List;

/**
 * @Author: liuzhaobo
 * @Description: 实验报告
 * @DateTime: 2022/9/1 0001 10:42
 * @Params:
 * @Return
 */
public interface ExperimentService {

    /**
     * 添加实验报告
     *
     * @param experiment
     * @return
     */
    public boolean insertExperiment(Experiment experiment);


    /**
     * 修改实验报告
     *
     * @param experiment
     * @return
     */
    public boolean updateExperiment(Experiment experiment);

    /**
     * 作品动态列表
     *
     * @param message 关键字
     * @return
     */
    public List<ExperimentDynamicVo> getAllDynamic(String message);

    /**
     * 实验报告列表
     *
     * @param userId
     * @param message 关键字
     * @return
     */
    public List<ExperimentReportVo> getAllReport(Integer userId, String message);

    /**
     * 点赞
     *
     * @param userId
     * @param experimentId
     * @return
     */
    public boolean giveLike(Integer userId, Long experimentId);

    /**
     * 取消点赞
     *
     * @param userId
     * @param experimentId
     * @return
     */
    public boolean unGiveLike(Integer userId, Long experimentId);

    /**
     * 删除实验报告
     *
     * @param experimentId
     * @return
     */
    public boolean delete(Long experimentId);

    List<Ud> allsy(int userid);

    List<Ud> allallsy();

    void addu3d02(int id, String username, String data, String formatdata);

    List<Uds> allsy2(int userid);

    List<Uds> allallsy02();

    void deleteExperimental(Integer udsid);

    void addu3ddddd(int id, String username, String userTime, String conmmitTime, Integer totalScore, Integer score_read, Integer score_sigin, Integer score_begin, Integer score_zt, Integer score_jzcf, Integer score_zts, Integer score_fac, Integer score_hy, Integer score_wy, Integer score_kh, String qd_summary, String yj_summary, String hy_summary, String wy_summary);
}
